arm: Consistently use proper interworking function returns
authorMartin Storsjö <martin@martin.st>
Thu, 3 Oct 2024 21:30:24 +0000 (00:30 +0300)
committerSebastian Ramacher <sramacher@debian.org>
Sun, 27 Oct 2024 17:31:51 +0000 (18:31 +0100)
commit6e014de2197d77998648c98f5dad605459de9de6
treec048ffb412845a748be8c4b607c63377015c947e
parent8db0657d746b1b654f3b0986f084952d96336d07
arm: Consistently use proper interworking function returns

Use "bx lr", or "pop {lr}", which do proper mode switching
between thumb and arm modes. A plain "mov pc, lr" does not switch
from thumb mode to arm mode (while in arm mode, it does switch
mode for a thumb caller).

This is normally not an issue, as CONFIG_THUMB only is enabled if
the C compiler defaults to thumb; but stick to patterns that can
do mode switching if needed, for consistency.

Signed-off-by: Martin Storsjö <martin@martin.st>
(cherry picked from commit 77e6293735262b20a86b5047b77991a86cf4e9e1)

Gbp-Pq: Name 0008-arm-Consistently-use-proper-interworking-function-re.patch
libswresample/arm/resample.S
libswscale/arm/hscale.S
libswscale/arm/output.S
libswscale/arm/yuv2rgb_neon.S